package com.weijx.dishes.mapper;

import com.weijx.dishes.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * com.weijx.dishes.mapper.OrderMapper
 * 描述：
 * on 2025/10/24-下午3:39
 *
 * @author weijx
 */
@Mapper
public interface OrderMapper {

    // 插入订单
    int insertOrder(Order order);

    // 根据ID查询订单（包含详情）
    Order selectOrderById(String id);

    // 更新订单状态
    int updateOrderStatus(@Param("id") String id,
                          @Param("orderStatus") Integer orderStatus,
                          @Param("processNote") String processNote);
}